package com.jackyzgy.test.junit;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class MathTestAnother {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test(expected=ArithmeticException.class)  
	public void testDivide() {  
	    assertEquals(3,Math.divide(9,3));  
	    assertEquals(3,Math.divide(10,3));  
	    Math.divide(10,0); //除数不能为0，会抛出异常  
	}  
	  
	@Ignore("忽略乘法测试")  
	@Test  
	public void testMultiple() {  
	}  

}
